/*
 * Created by Administrator on 2017/3/31.
 */

var AccountMes = React.createClass({
    getDefaultProps: function() {
        return{
            AccType:0

        }
    },
    componentDidMount:function(){

    },
    render: function () {
        if(!this.props.AccType){
            return(
                <ul className="clearfix">
                    <li><span className="span fc-main"><strong>{this.props.UncollectedPrincipal}</strong>元</span><p className="fc-light"> 待回收收益</p></li>
                    <li><span className="span fc-dark"><strong>{this.props.UncollectedIncome}</strong>元</span><p className="fc-light"> 待回收本金</p></li>
                    <li><span className="span fc-dark"><strong>{this.props.TotalIncome}</strong>元</span><p className="fc-light"> 账户累计收益</p></li>
                </ul>
            )
        }else {
            return(
                <ul className="clearfix">
                    <li><span className="span fc-main"><strong>{this.props.UncollectedPrincipal}</strong>元</span><p className="fc-light"> 成功融资总额</p></li>
                    <li><span className="span fc-dark"><strong>{this.props.UncollectedIncome}</strong>元</span><p className="fc-light"> 待还本息</p></li>
                    <li><span className="span fc-dark"><strong>{this.props.TotalIncome}</strong>元</span><p className="fc-light"> 应还本息</p></li>
                </ul>
            )
        }


    }
})

module.exports = AccountMes;